package cn.kxm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.UserMapper;
import cn.kxm.pojo.Sysuser;
import cn.kxm.service.UserService;
@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	@Override
	public Sysuser getUser(String name,String pwd) {
		Sysuser sysuser=new Sysuser();
		sysuser=userMapper.getUser(name);
		if(sysuser!=null){
			if(sysuser.getPwd().equals(pwd)){
				return sysuser;
			}
		}
		return null;
	}

}
